package engine.input;

import engine.Prefs;

public class Inputs 
{

    private Keys keys;
    public Keys keys() 
    {
        return keys;
    }
    
    private Mouse mouse;
    public Mouse mouse() 
    {
        return mouse;
    }

    public Inputs(Prefs prefs) 
    {
        keys = new Keys();
        mouse = new Mouse(prefs.mouseSens());
    }
    
    public void update() 
    {
        keys.update();
        mouse.update();
    }
    
    public void destroy() 
    {
        keys.destroy();
        mouse.destroy();
        keys = null;
        mouse = null;
    }
    
}
